package com.bruce.practice.thread.calculate;

/**
 * @author luotuan
 * @Description
 * @create 2020-05-19 11:22
 **/
public class ExpensiveFunction implements Computable<String,Integer> {
    @Override
    public Integer compute(String arg) throws InterruptedException {
        Integer param = Integer.parseInt(arg);
        return param*param;
    }
}
